<%-- 
    Document   : process_vote
    Created on : Oct 30, 2009, 5:12:26 PM
    Author     : Phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="DAOClass.*,java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>

        <jsp:useBean id="Bv" class="DAOClass.vote">
        </jsp:useBean>
        <table border="1">

            <tbody>
                <%
                    int id = 0;
                    String selectName;
                    double selectted;
                    ResultSet re;
                    id = Integer.parseInt(request.getParameter("select"));
                   // out.println(id);
                    Bv.voite(id);
                    re = Bv.voidSelect();
                    while (re.next()) {

                        selectName = re.getString("VoteSelect");
                        selectted = Double.parseDouble(re.getString("Selectted"));
                %>



                <tr>
                    <td><%=selectName%></td>
                    <td><b><%=selectted%></b> Phiếu bầu</td>
                </tr>
                <%
        }

                %>
            </tbody>
        </table>

    </body>
</html>
